package com.fcscs.cservice.ws.client.guestprofileservice;

import org.apache.log4j.Logger;
import org.springframework.ws.client.core.support.WebServiceGatewaySupport;

import com.fcscs.cservice.ws.schema.guestprofileservice.UpdateGuestProfileRequest;
import com.fcscs.cservice.ws.schema.guestprofileservice.UpdateGuestProfileResponse;

public class UpdateGuestProfileClient extends WebServiceGatewaySupport {

	private static final Logger LOG = Logger.getLogger(UpdateGuestProfileClient.class);

	public UpdateGuestProfileResponse updateGP(UpdateGuestProfileRequest req) {
		UpdateGuestProfileResponse resp = (UpdateGuestProfileResponse) getWebServiceTemplate().marshalSendAndReceive(req);
		LOG.info("----------resv " + resp.getGuestProfileView());
		return resp;
	}

}
